﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IE
{
    class ClientInfoOutput :IEquatable<ClientInfoOutput>
    {
        string name;
        string id;
        string mobile;
        string registerTime;
        string registerWay;
        string activateStatus;
        string fuYouStatus;
        string bindRelation;
        string operation;

        List<string> dumpInfo = new List<string>();

        public string Name
        {
            get
            {
                return name;
            }

            set
            {
                name = value;
            }
        }

        public string Id
        {
            get
            {
                return id;
            }

            set
            {
                id = value;
            }
        }

        public string RegisterTime
        {
            get
            {
                return registerTime;
            }

            set
            {
                registerTime = value;
            }
        }

        public string RegisterWay
        {
            get
            {
                return registerWay;
            }

            set
            {
                registerWay = value;
            }
        }

        public string ActivateStatus
        {
            get
            {
                return activateStatus;
            }

            set
            {
                activateStatus = value;
            }
        }

        public string FuYouStatus
        {
            get
            {
                return fuYouStatus;
            }

            set
            {
                fuYouStatus = value;
            }
        }

        public string BindRelation
        {
            get
            {
                return bindRelation;
            }

            set
            {
                bindRelation = value;
            }
        }

        public string Operation
        {
            get
            {
                return operation;
            }

            set
            {
                operation = value;
            }
        }

        public string Mobile
        {
            get
            {
                return mobile;
            }

            set
            {
                mobile = value;
            }
        }

        public List<string> DumpInfo
        {
            get
            {
                return dumpInfo;
            }

            set
            {
                dumpInfo = value;
            }
        }

        public bool Equals(ClientInfoOutput other)
        {
            List<string> lhs = this.DumpInfo;
            List<string> rhs = other.DumpInfo;
            bool equals = lhs.SequenceEqual(rhs);
            return equals;
        }
    }
}
